package com.lora.enums;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

@Getter
public class   DoorEnum {
    static Map<String,String> map=new HashMap<>();
    static {
        map.put("12","刷卡禁止通过: 原因不明");
        map.put("14","按钮开门");
        map.put("17","门打开[门磁信号]");
        map.put("18","门关闭[门磁信号]");
        map.put("19","超级密码开门");
        map.put("1C","控制器上电");
        map.put("1D","控制器复位");
        map.put("1F","按钮不开门: 强制关门");
        map.put("20","按钮不开门: 门不在线");
        map.put("21","按钮不开门: 互锁");
        map.put("22","胁迫报警");
        map.put("25","门长时间未关报警[合法开门后]");
        map.put("26","强行闯入报警");
        map.put("27","火警");
        map.put("28","强制关门");
        map.put("29","防盗报警");
        map.put("2A","烟雾煤气温度报警");
        map.put("2B","紧急呼救报警");
        map.put("2C","操作员远程开门");
        map.put("2D","发卡器确定发出的远程开门");
    }

    public static String get(String key){
        return map.get(key);
    }
}
